using System.ComponentModel;
using StudentVideo.Shared.Dtos.Common;

namespace StudentVideo.Shared.Dtos.Student;

public class StudentFindResult {
   public required List<StudentFindResultItem> List { get; set; }
   public required PageResult Page { get; set; }

}

public record class StudentFindResultItem: StudentBase {

   [DisplayName("姓名")]
   public string Name { get; set; } = null!;
   /// <summary>
   /// 学号
   /// </summary>
   [DisplayName("学号")]
   public string Id { get; set; } = null!;

   [DisplayName("联系电话")]
   public required string Phone { get; set; }

   [DisplayName("地址")]
   public string? Address { get; set; }
   /// <summary>
   /// 入学时间
   /// </summary>
   [DisplayName("入学时间")]
   public required DateTime Enrollment { get; set; }
   /// <summary>
   /// 毕业时间
   /// </summary>
   [DisplayName("毕业时间")]
   public DateTime? Graduation { get; set; }
   /// <summary>
   /// 紧急联系人
   /// </summary>
   [DisplayName("紧急联系人")]
   public required string EmergencyContactName { get; set; }
   /// <summary>
   /// 紧急联系人电话
   /// </summary>
   [DisplayName("紧急联系人电话")]
   public required string EmergencyContactPhone { get; set; }
}
